package com.rbac.admin.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 角色菜单关联实体类
 */
@Data
@TableName("sys_role_menu")
@Tag(name = "SysRoleMenu", description = "角色菜单关联实体类")
public class SysRoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Schema(name = "id", description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 角色ID
     */
    @Schema(name = "roleId", description = "角色ID")
    private Long roleId;

    /**
     * 菜单ID
     */
    @Schema(name = "menuId", description = "菜单ID")
    private Long menuId;

    /**
     * 创建时间
     */
    @Schema(name = "createTime", description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}